package com.lanling.customerconsumer.service;

import com.lanling.customerconsumer.feign.factory.UserFeignFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "customer-center",/*fallback = UserFeignFallBackFactory.class*/ fallbackFactory = UserFeignFallBackFactory.class)
public interface UserFeignClient {

    @GetMapping("/customer/user")
    String getUser();
}
